package fun.werfamily.wf.goods.core.infrastructure.mapper;


import fun.werfamily.wf.goods.core.infrastructure.dataobject.GoodsAttachmentDO;

import java.util.List;

public interface GoodsAttachmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GoodsAttachmentDO record);

    int insertSelective(GoodsAttachmentDO record);

    GoodsAttachmentDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GoodsAttachmentDO record);

    int updateByPrimaryKey(GoodsAttachmentDO record);

    /**
     * 根据spuCodes查询附件
     * @param spuCodes
     * @return
     */
    List<GoodsAttachmentDO> listBySpuCodes(List<String> spuCodes);
}